<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<title>{{Get_Name}} 登录</title>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="stylesheet" type="text/css" href="/fonts/font-awesome-4.7.0/css/font-awesome.min.css">
	<link rel="stylesheet" type="text/css" href="/logincss/util.css">
	<link rel="stylesheet" type="text/css" href="/logincss/main.css">
	<link rel="stylesheet" href="/adminlte/plugin/toastr/toastr.min.css">
</head>

<body>
<div class="dowebok">
	<div class="container-login100">
		<div class="wrap-login100">
			<div class="login100-pic js-tilt" data-tilt>
				<img src="{{Get_Logo}}" alt="IMG">
			</div>

			<div class="login100-form validate-form">
				<span class="login100-form-title">
					{{Get_Name}} 后台
				</span>

				<div class="wrap-input100 validate-input">
					<input class="input100" type="text" name="email" placeholder="账号" id="username">
					<span class="focus-input100"></span>
					<span class="symbol-input100">
						<i class="fa fa-envelope" aria-hidden="true"></i>
					</span>
				</div>

				<div class="wrap-input100 validate-input">
					<input class="input100" type="password" name="pass" placeholder="密码" id="password">
					<span class="focus-input100"></span>
					<span class="symbol-input100">
						<i class="fa fa-lock" aria-hidden="true"></i>
					</span>
				</div>
				
				<div class="container-login100-form-btn">
					<button class="login100-form-btn" id="login">
						登陆
					</button>
				</div>

				<div class="text-center p-t-12">
					<a class="txt2" href="javascript:">
						忘记密码？
					</a>
				</div>

				<div class="text-center p-t-136">
					<a class="txt2">
							还没有账号？立即注册
						<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
					</a>
				</div>
			</div>
		</div>
	</div>
</div>
<script src="/adminlte/plugin/jquery/jquery.min.js"></script>
<script src="/adminlte/plugin/toastr/toastr.min.js"></script>
<script>
	$("#login").click(function (){
		$.post('login',{username:$("#username").val(),password:$("#password").val()},function (res){
			if (res.status === "ok")
			{
				toastr.success("登录成功！");
				setTimeout(function (){
					window.location.href = '{{Get_Prefix}}';
				},3000)
			}
			else
			{
				toastr.error("登录失败！");
			}
		});
	});
</script>
</body>
</html>